Nevron Open Vision Documentation
Nevron.Nov Namespace / NAggregatePromise Class / All Method / All<TResult>(INIterable<INPromise>) Method


In This Topic
    All<TResult>(INIterable<INPromise>) Method
    In This Topic
    The All method takes an array of promises, and returns a single Promise that contains an array of the results of the input promises. The returned promise will fulfill when all of the input's promises have fulfilled. It rejects immediately upon any of the input promises rejecting, and will fail with this first failure exception.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function All(Of TResult)( _
       ByVal promises As INIterable(Of INPromise) _
    ) As NPromise(Of TResult())
    'Usage
     
    
    Dim promises As INIterable(Of INPromise)
    Dim value As NPromise(Of TResult())
     
    value = NAggregatePromise.All(Of TResult)(promises)

    Parameters

    promises

    Type Parameters

    TResult
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also